Problem Note 56535: An incorrect WHERE condition is generated when you use the META engine to access a database table
An incorrect WHERE condition might be generated when you use the SQL procedure to query a database table. The problem occurs when both of the following conditions apply:
The problem occurs because the PROC SQL query applies column attributes to a database column based on the column's position in the metadata table. When the attributes do not match, such as when a datetime format is matched with a character data type, an error might also occur.
Note: The error that is returned varies depending on what database you are using.
To circumvent the problem, use the native LIBNAME engine for the database such as ORACLE, TERADATA, GREENPLM, OLEDB, or HADOOP.
If you must use the META engine, you can circumvent the problem by completing the following steps to arrange the columns in the metadata table to match the order of the columns in the database table:
- Open SAS® Management Console.
- Select Environment Management ► Data Library Manager and then click your-library.
- Right-click the table and click Properties.
- In the EMP Properties dialog box, click the Columns tab.
- Drag the columns so that they are in the correct order.
- When you save the changes, click Yes to save the new order.
Click the Hot Fix tab in this note to access the hot fix for this issue.
The hot fix addresses the problem for Greenplum only.
Refer to the Fixed column of the Operating System and Release Information table below to find the release number in which this problem is addressed for your database.
Operating System and Release Information
SAS System | SAS Metadata Server | Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.2 TS2M0 | 9.4 TS1M3 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |
Microsoft Windows Server 2008 R2 | 9.2 TS2M0 | 9.4 TS1M3 |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | 9.4 TS1M3 |
Microsoft Windows XP Professional | 9.2 TS2M0 | |
Windows Vista | 9.2 TS2M0 | |
Windows Vista for x64 | 9.2 TS2M0 | |
64-bit Enabled AIX | 9.2 TS2M0 | 9.4 TS1M3 |
64-bit Enabled HP-UX | 9.2 TS2M0 | 9.4 TS1M3 |
64-bit Enabled Solaris | 9.2 TS2M0 | 9.4 TS1M3 |
HP-UX IPF | 9.2 TS2M0 | 9.4 TS1M3 |
Linux | 9.2 TS2M0 | 9.4 TS1M3 |
Linux for x64 | 9.2 TS2M0 | 9.4 TS1M3 |
Solaris for x64 | 9.2 TS2M0 | 9.4 TS1M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> LIBNAME Engines
|
Date Modified: | 2018-08-07 13:48:19 |
Date Created: | 2015-09-01 18:41:29 |